#ifndef __WPLAYER_H__
#define __WPLAYER_H__

class CPlayer :public CObject
{
public:
	CPlayer(int cindex);
	CPlayer();
	~CPlayer();

	int dbid;
	int clientindex;
	int sockethit, sockethitagain;

public:
	std::string playerName;
	int playerLevel;
	int playerExp;
	int playerSex;
	_wserVector<__Item> itemlist;
	_wserMap<int, __Task> tasklist;
	_wserVector<__Counter> counterlist;
};

extern CPlayer* getPlayerByCIndex(int clientindex);
extern int createPlayer(int clientindex);
extern void removePlayer(int clientindex);
extern CPlayer* getSafePlayer();

extern CPlayer* g_pSafePlayer;

#endif //__WPLAYER_H__
